var routes = [
  {
    path: '/index',
    name: 'index',
    component: () => import('../views/index.vue'),
    children: [
      {
        path: '/index/home',
        name: 'index/home',
        component: () => import('../views/home/home.vue'),
      },
      {
        path: '/index/tuan',
        name: 'index/tuan',
        component: () => import('../views/tuan/tuan.vue'),
        children: [
          {
            path: '/index/tuan/Snapped',
            name: '/index/tuan/Snapped',
            component: () => import('../views/tuan/tuan-Snapped.vue'),
          },
          {
            path: '/index/tuan/Notice',
            name: '/index/tuan/Notice',
            component: () => import('../views/tuan/tuan-Snapped.vue'),
          },
        ]
      },

      {
        path: '/index',
        redirect: '/index/home'//重定向，当端口后什么都没有的时候，就加载index页面
      },
    ]
  },
  {
    path: '/',
    redirect: '/index'//重定向，当端口后什么都没有的时候，就加载index页面
  },

]

export default routes;